//index.js
//获取应用实例
const app = getApp()

Page({
	onLoad: function (options) {
		var that = this;
		this.setData({
			data_src:'https://m.160nurse.com/Canvas/ti_mu_detail.html?type='+options.type
		});
		var  title_name='';
		if(options.type==0){
			title_name='心脏疾病科普自测';
		}else if(options.type==1){
			title_name='肝脏疾病科普自测';
		}else if(options.type==2){
			title_name='肾虚科普自测';
		}else if(options.type==3){
			title_name='胃肠疾病科普自测';
		}else if(options.type==4){
			title_name='糖尿病科普自测';
		}else if(options.type==5){
			title_name='肺部疾病科普自测';
		}else if(options.type==6){
			title_name='痔疮疾病科普自测';
		}else if(options.type==7){
			title_name='痛风疾病科普自测';
		}else if(options.type==8){
			title_name='体检建议';
		};
		wx.setNavigationBarTitle({
				title: title_name
		});
	},
  onShareAppMessage: function () {
    var nickName = '';
    try {
      nickName = wx.getStorageSync('nickName');
    } catch (e) {}
    return {
      title: nickName + '向你推荐「疾病科普自测」了解症状，预防疾病'
    }
  }
})


